import Entities.Computer.Computer;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.support.ClassPathXmlApplicationContext;


public class main {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("ApplicationContext.xml");
        Computer lenovoComputer = ((Computer)context.getBean("lenovoComputer"));
        System.out.println(lenovoComputer.toString());
        lenovoComputer.displayer.out();
        lenovoComputer.printer.out();
    }
}
